package com.ruoyi.chat.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 聊天记录对象 chat
 * 
 * @author ruoyi
 * @date 2025-05-18
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Chat extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 发送者ID */
    @Excel(name = "发送者ID")
    private Long sendUserId;

    /** 接收者ID */
    @Excel(name = "接收者ID")
    private Long receiveUserId;

    /** 发送者名字 */
    @Excel(name = "发送者名字")
    private String sendUserName;

    /** 发送者头像 */
    @Excel(name = "发送者头像")
    private String sendUserImage;

    /** 接收者名字 */
    @Excel(name = "接收者名字")
    private String receiveUserName;

    /** 接收者头像 */
    @Excel(name = "接收者头像")
    private String receiveUserImage;

    /** 关联MongoDB内容ID */
    @Excel(name = "关联MongoDB内容ID")
    private String content;

    /** 发送时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发送时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date sendTime;

}
